using System;
using Beaker.Specs;
using OpenCube.Nbt.Mapping;

namespace OpenCube.Nbt.Specs.Builders
{
	public sealed class TypeConverterBuilder<TTypeConverter>
		: Builder<INbtTypeConverter>
		where TTypeConverter : INbtTypeConverter
	{
		public override INbtTypeConverter Build()
		{
			return (TTypeConverter)Activator.CreateInstance(typeof(TTypeConverter));
		}
	}
}